// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI)
import './assets/iconfont/iconfont.css'
import axios from 'axios'
import './css/base.css'
import util from './util'
Vue.use(util)
import bus from 'vue-bus'
Vue.use(bus)
import store from './store'
import Global from './components/Global'
Vue.prototype.$Global = Global
Vue.prototype.$http = axios
axios.defaults.baseURL = "http://localhost:8080"
Vue.prototype.$uploadPath = axios.defaults.baseURL

Vue.config.productionTip = false
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
